# $Id: PKGBUILD 181845 2013-04-04 14:17:56Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgbase="libreoffice-i18n"
pkgname=('libreoffice-af'
         'libreoffice-am'
         'libreoffice-ar'
         'libreoffice-as'
         'libreoffice-ast'
         'libreoffice-be'
         'libreoffice-bg'
         'libreoffice-bn-IN'
         'libreoffice-bn'
         'libreoffice-bo'
         'libreoffice-br'
         'libreoffice-brx'
         'libreoffice-bs'
         'libreoffice-ca-XV'
         'libreoffice-ca'
         'libreoffice-cs'
         'libreoffice-cy'
         'libreoffice-da'
         'libreoffice-de'
         'libreoffice-dgo'
         'libreoffice-dz'
         'libreoffice-el'
         'libreoffice-en-GB'
         'libreoffice-en-ZA'
         'libreoffice-eo'
         'libreoffice-es'
         'libreoffice-et'
         'libreoffice-eu'
         'libreoffice-fa'
         'libreoffice-fi'
         'libreoffice-fr'
         'libreoffice-ga'
         'libreoffice-gd'
         'libreoffice-gl'
         'libreoffice-gu'
         'libreoffice-he'
         'libreoffice-hi'
         'libreoffice-hr'
         'libreoffice-hu'
         'libreoffice-id'
         'libreoffice-is'
         'libreoffice-it'
         'libreoffice-ja'
         'libreoffice-ka'
         'libreoffice-kk'
         'libreoffice-km'
         'libreoffice-kn'
         'libreoffice-ko'
         'libreoffice-kok'
         'libreoffice-ks'
         'libreoffice-ku'
         'libreoffice-lb'
         'libreoffice-lo'
         'libreoffice-lt'
         'libreoffice-lv'
         'libreoffice-mai'
         'libreoffice-mk'
         'libreoffice-ml'
         'libreoffice-mn'
         'libreoffice-mni'
         'libreoffice-mr'
         'libreoffice-my'
         'libreoffice-nb'
         'libreoffice-ne'
         'libreoffice-nl'
         'libreoffice-nn'
         'libreoffice-nr'
         'libreoffice-nso'
         'libreoffice-oc'
         'libreoffice-om'
         'libreoffice-or'
         'libreoffice-pa-IN'
         'libreoffice-pl'
         'libreoffice-pt-BR'
         'libreoffice-pt'
         'libreoffice-ro'
         'libreoffice-ru'
         'libreoffice-rw'
         'libreoffice-sa-IN'
         'libreoffice-sat'
         'libreoffice-sd'
         'libreoffice-sh'
         'libreoffice-si'
         'libreoffice-sid'
         'libreoffice-sk'
         'libreoffice-sl'
         'libreoffice-sq'
         'libreoffice-sr'
         'libreoffice-ss'
         'libreoffice-st'
         'libreoffice-sv'
         'libreoffice-sw-TZ'
         'libreoffice-ta'
         'libreoffice-te'
         'libreoffice-tg'
         'libreoffice-th'
         'libreoffice-tn'
         'libreoffice-tr'
         'libreoffice-ts'
         'libreoffice-tt'
         'libreoffice-ug'
         'libreoffice-uk'
         'libreoffice-uz'
         'libreoffice-ve'
         'libreoffice-vi'
         'libreoffice-xh'
         'libreoffice-zh-CN'
         'libreoffice-zh-TW'
         'libreoffice-zu')
_rcver=4.0.2.2
pkgver=4.0.2
pkgrel=1

_oodlver=${pkgver}
#_oodlver=${_rcver}
_dirver=${_rcver}

pkgdesc="LibreOffice language/localisation files"
arch=('any')
url="http://www.documentfoundation.org"
license=('LGPL')
makedepends=('rpmextract')

# http://wiki.documentfoundation.org/Language_Teams

#http://download.documentfoundation.org/mirrors/all.html
_url="http://download.documentfoundation.org/libreoffice/stable"
#_url="http://download.documentfoundation.org/libreoffice/testing"
#_url="http://dev-builds.libreoffice.org/pre-releases"
#_url="http://www.libreoffice.org/download/pre-releases"

#_url+="/${pkgver}-rc2/rpm/x86"
_url+="/${pkgver}/rpm/x86"

source=(${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_af.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_am.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ar.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_as.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ast.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_be.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_bg.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_bn-IN.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_bn.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_bo.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_br.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_brx.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_bs.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ca-XV.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ca.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_cs.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_cy.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_da.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_de.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_dgo.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_dz.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_el.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_en-GB.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_en-ZA.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_eo.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_es.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_et.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_eu.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_fa.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_fi.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_fr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ga.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_gd.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_gl.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_gu.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_he.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_hi.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_hr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_hu.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_id.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_is.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_it.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ja.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ka.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_kk.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_km.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_kn.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ko.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_kok.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ks.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ku.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_lb.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_lo.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_lt.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_lv.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_mai.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_mk.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ml.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_mn.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_mni.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_mr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_my.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_nb.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ne.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_nl.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_nn.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_nr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_nso.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_oc.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_om.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_or.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_pa-IN.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_pl.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_pt-BR.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_pt.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ro.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ru.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_rw.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sa-IN.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sat.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sd.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sh.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_si.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sid.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_sk.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_sl.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_sq.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ss.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_st.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_sv.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_sw-TZ.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ta.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_te.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_tg.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_th.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_tn.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_tr.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ts.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_tt.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_ug.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_uk.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_uz.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_ve.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_vi.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_xh.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_zh-CN.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_{langpack,helppack}_zh-TW.tar.gz
        ${_url}/LibreOffice_${_oodlver}_Linux_x86_rpm_langpack_zu.tar.gz)
md5sums=('5d4653c8bcf43b5476d4f3ff2003d83b'
         'f44a512bad7d5a1bba10a11a2e22a4cc'
         'bf86255b8a79b6f4fe9fed664b077e6a'
         '73d60f53e1e94e88bc367fe447363474'
         '2ee30d13290c354e5e2fd346e4e23a93'
         '1c56870727c4c054bdf997192d041add'
         'd4ae6abeaeeb935508b6ca2a44607bde'
         'cbb9fcbe099067f119b21035b5f98bf1'
         'ea969b2caeedb5ba138392f1748089c9'
         'fd8aa1061e7d15e6eaba20200b2d13d5'
         'cb07074adc4625d74ddeef4be809f974'
         'f425208578aeda8170568f4803d2e647'
         'e33f69e12638a67feab5b28088d7c3bf'
         'bf993a09f792721f88f9380a80597d14'
         '173ab8cb2cafa1533e264fa08ec36763'
         'd56b937f6978e83b45429cb320b5148d'
         '04aabf8193338e6e147dbe76ffdeaccd'
         'd0826e7b01ad467a959eac6904dad440'
         '133d5021d76ae80d170467af82344eff'
         '5f845a9fb4f81a3daa186adb67a7dcb7'
         '486ca3773b95c3c4ae24d4ac6dcc4176'
         '8d886baa3e10c4170df30c099ef7880d'
         'afe385bd6776c4d8ecc511fb18b05349'
         '03f65da6ac3bbf5f0af18f382459fe60'
         '8641661a59c3e5f785bc572ab14b4a18'
         '0c1f8e74a613710e9eb2192fb94215be'
         '32145c32893d8542be1933285ace757c'
         'b0985fece3f148061d453a5b616d712b'
         '5a0705f34f1ad13f99a5cd87b831d80a'
         '42bedb8a480b2854351b6261f4be9cdd'
         '10752d90110317db37ad7f1d374e2e55'
         '58e90459197cbf78a1b1c1d02aa23e71'
         '88acdbe4a1699b6c1f0d33fdb5b07c3c'
         '5c2cb75dee39b8a6a833acf988f7c0b5'
         '57dcebeec7d569d8186585f85e977150'
         'd6d3a6310787854b36f3221b74c8ff1b'
         '9f2a8f55260b2003a2d526a2eca3eed7'
         'ce2112fb4c4f5eb52cdbfe9abaeb7a15'
         'b8614345783ea7e122d9f0a063ec462a'
         '322822724218c2be52581bb5da7534ee'
         '5ef4d3e9359648326c6c91dbb4abce74'
         '2f91410f5844cffa155a3d0d3d3edd3c'
         '32e076a899fc174fe7edb9683e1b02fe'
         'f11229d3134bd90bc3710e9a1a236231'
         '1c28c2ef64ebfaf5af4ba5dc833ac9f9'
         '3e74698627ba6f95a1a23da2554885e6'
         'eaeb6789207e71d0920274b8c37eb665'
         'f76dd8f7c32ff3a2441735b26e003ac0'
         '1c4683fa8834100ee40a1635d7eba89c'
         'b82d56fb16740ed09135b51cf6b12336'
         '4a2b727ae38db4d4c6be391eb9ba74f2'
         'd70c10b3ac44a376637c1ec16b84b74a'
         '5f64ae35792f41d42b173066058e4acb'
         'd0b380efbfa2c6242b0e49b112cb9f36'
         '3df70b16e4d3430005d393dcf91d485c'
         '3cc2b5da5de3e85933883481e8df2027'
         '6a4fda27c4278fdff05b78d3e2a82cd6'
         '9ec3ebb4da2715d0fceb4d96a3668f3b'
         '8f3c64a0e70fc05677caefa1bacfbcdb'
         'eee068c9ea7c1fe898dd4992fef3a0d8'
         '32ad9feb350306a26a2c41083dd6ea72'
         '34fea3000d6dae8eec6dc11a30762112'
         'c8971ec8d92909610d6146c054869f51'
         '43ffbac2dcb92bead55554e815f79e06'
         '56cc0cf30be387ff95e1a4acc7345b96'
         '7a1522de9feb9018b2600101faac588e'
         '14f0db9945477afcfb201a4526a40acd'
         '94212b4c7dbd793789d87d0f6289392f'
         'c92d7736267ec8697e5c16e64a76d5cd'
         'd1dda706962050bc071c68fcdeafafd6'
         '5c604d66c512260e2b7c73c244e8547e'
         'af8d54f62df5ea4c3f42a4d5c9073c9c'
         'be3e9b22935a84221f091ad81b373c69'
         'd671d95fbb58b7ead06973abfda537bf'
         'ebd96217749852065a829a1b078480a7'
         'ab82101d65082e294f3ab35059e57b16'
         'f6c36fad09802a90e9b98db1859547f8'
         '46253d4ef5910fc2956655aa7ffb3162'
         '32b697b6296b02ff00cb14c42aea7da9'
         '5aa993b7887d0a47f55cd263637faad1'
         '16bd5bf5915c9a359d7e26b48fd88849'
         'cad2ee87ea9249c9e22a49db700cb7d7'
         '98f6583110f999184d5f1cbb4b63ce45'
         '30bd3157baa378fed33d5811ec6b7a86'
         'adb0f64133a7878251b5679b81a602cf'
         'cfc879593020ec82205e02e669013ce5'
         'be222e639dc416b26e07758d89dec8b3'
         'ba8e78a83f05002d19ec6aca06cca819'
         '06f86f1ee101b1c16a192f9f4dbe32ba'
         '0cbba82831a884ec6589f88d162feb66'
         'c776f9847de0594ff266d245b50decbd'
         '5d8363a70e3ee1ca4bdf23344c3346ba'
         '361222aff3e603f4ca2f08a5c46d19aa'
         'e0ca31ea06d57d1379999846e8e0bb69'
         'b9ca1b4f4f4f937dabdd15237f7b3e0c'
         'b473954ed33475ad8e0856e58233cf5d'
         '6436fe979376d1170de4bd8e2850c837'
         '6e2eca9922e0158d61ef510adfaa0add'
         '17d8b0d3b7612f3312ed65beb0515ccd'
         '0008b7bed412df8b2b7ba7ec3a054576'
         'f3ba1c5376523008c3d0eb041a3d394f'
         '9bd5bfdbaf0eef569ff6d61e480ee3c6'
         '0940d9b4c9da745d594dac8a9bb708b4'
         '46c6a1f16fd79c83da82589a0ce7966d'
         'd8b5a2d7fc2222c0d9f3d0ec4bd5145f'
         '3e1f464128d439861c5cd402b93b9199'
         'f8110067f5777b79fbe141933c63bdaa'
         '8f767a45f5b014cb5063f79c6224a81f'
         'ec3e78b87733cf9567569a03c53e65e3'
         '86343ee6239715b70b8a5206a54b123f'
         'b636c6b82a9a6d384f2677c1636964bc'
         '588e0d0c556bb09952d4f7c8717f50dd'
         'af7265d16dee994c7777bf0bab53c86c'
         '7159f612966baefe678d580f5f802d3b'
         '7a9a557ef0cc817b54ac2e1dbf1d5962'
         '03f08655a36ec4f78a29efb604127355'
         'de164885196ff5563608115f8c3b2cae'
         '071168fe66efdbe7ffbf8aef8c2baa62'
         '1fa4b71ecb0199fd663591f9de05173e'
         'a1e571f841e337066bf1c42d951d387a'
         'fab32a0293ca5eb931806cb38922e03d'
         '617ff17199d7c074107aa4f4c0d2012c'
         'fd27507da831878942cb5ef1cf54b1ef'
         'beaf1912b6b3ced61f4b46672025a868'
         '327ac416bfede8ff06996c72a28e05d5'
         '844dd7416fae6c1a9c8c5cd89d321139'
         'fdc8e02d67025d423fd7c9b26e075fd8'
         'fdc61b65c323caadd4e78426537d111c'
         'a9833e82e20fb30ee6571d3577723c3d'
         'c075d0f8205804e9e38c71bddcd8b0e1'
         '2fdb69f528396ae1599b9a9ae07dd121'
         '1742f89901b6b618e5aba3e47ef902d2'
         '1d5971ffd864f6b90460924f601d1f90'
         '90b8b5a6cbafc9a6c1f2f16cab87e6b8'
         'b3688b16d36604c8265a93e44b4fdce6'
         '65db3876f3ffa215ef568958d4249a5a'
         '152992cfb363c94068b13be0c7032973'
         '2910cb3d63e76470addc655a6f2b469f'
         '20f1e2a3e5ce01361a35a28c61d56c14'
         'b330eb694cd6a89472b073a51e64c201'
         'eb264ef2a49f4d823844a492bd4781ff'
         'c58348e911df9215f24c73bf02f5181f'
         '09cbadc62284583a81e077ca95b7872b'
         '370f4071b549cf4b6a00cb9dd5f6d802'
         '3f07d15839702ad54f7304d3e9ae3aad'
         'b24895491ef8e3bb4faae1c3e45b2a3b'
         'a8673e67f73651f2a3be20f125283c0a'
         '568a870e17e3fe92286df4867e5cc8ca'
         'd39e422bb255073b17b883c31f1c72ae'
         '5bc935941626b9d887b190a49393ca8a'
         'aaf8d0c6ecc28d0da8f2e16788477fa2'
         'd0778c4aafc0b54d1076f20c6c0f1a4b'
         'ea5e47077242360491826324772c2ccb'
         'bb745e81f17f7d4eb683888e17d744b5'
         '94c31fbb606ac6d3c6083d6ee4fe6de0'
         '703fb6494e50398329ca8d498d47d059'
         '768cf7f2143f810f2a4c45005646d2a2'
         '86f088cbf2c50432ce9436ad57355023'
         '7b468e78071dfaa4022e7f0ae6a2ccd7'
         'c7eddeabd28ee9703fe12d41144a3f88'
         'db5043f37120840928d70965c36a7367'
         '1a203ab91df35d6c109de784955495bf'
         'b9dc2cf920e2c73e900234412d599226'
         '72177325877be48dc38ce5a97ba32393'
         '1362729d12e271c87e12de8c37429eff')

build() {
  for i in ${pkgname[@]}
   do _pkglang=${i#*-}
    echo ${_pkglang} " unpacking..."
    cd ${srcdir}/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_${_pkglang}/RPMS
    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf lo*-dict-*.rpm || /bin/true
	for j in *.rpm
	 do rpmextract.sh $j
	done
    # the helppack rpm goes also into the langpack dir - so far we don't want to split the helppacks separate
    rpmextract.sh ${srcdir}/LibreOffice_${_dirver}_Linux_x86_rpm_helppack_${_pkglang}/RPMS/*.rpm || /bin/true
  done
}

package_libreoffice-af() {
  pkgdesc="Afrikaans language pack for LibreOffice"
  provides=('openoffice-af' 'libreoffice-langpack')
  replaces=(openoffice-af)
  conflicts=(openoffice-af)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_af/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-am() {
  pkgdesc="Afrikaans language pack for LibreOffice"
  provides=('openoffice-am' 'libreoffice-langpack')
  replaces=(openoffice-am)
  conflicts=(openoffice-am)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_am/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ar() {
  pkgdesc="Arabic language pack for LibreOffice"
  provides=('openoffice-ar' 'libreoffice-langpack')
  replaces=(openoffice-ar)
  conflicts=(openoffice-ar)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ar/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-as() {
  pkgdesc="Assamese (India) language pack for LibreOffice"
  provides=('openoffice-as' 'libreoffice-langpack')
  replaces=(openoffice-as)
  conflicts=(openoffice-as)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_as/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ast() {
  pkgdesc="Asturianu language pack for LibreOffice"
  provides=('openoffice-ast' 'libreoffice-langpack')
  replaces=(openoffice-ast)
  conflicts=(openoffice-ast)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ast/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-be() {
  pkgdesc="Belarusian language pack for LibreOffice"
  provides=('openoffice-be-BY' 'libreoffice-langpack')
  replaces=(openoffice-be-BY)
  conflicts=(openoffice-be-BY)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_be/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-bg() {
  pkgdesc="Bulgarian language pack for LibreOffice"
  provides=('openoffice-bg' 'libreoffice-langpack')
  replaces=(openoffice-bg)
  conflicts=(openoffice-bg)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_bg/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-bn-IN() {
  pkgdesc="Bengali (India) language pack for LibreOffice"
  provides=('openoffice-bn-IN' 'libreoffice-langpack')
  replaces=(openoffice-bn-IN)
  conflicts=(openoffice-bn-IN)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_bn-IN/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-bn() {
  pkgdesc="Bengali language pack for LibreOffice"
  provides=('openoffice-bn' 'libreoffice-langpack')
  replaces=(openoffice-bn)
  conflicts=(openoffice-bn)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_bn/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-bo() {
  pkgdesc="Tibetan language pack for LibreOffice"
  provides=('openoffice-bo' 'libreoffice-langpack')
  replaces=(openoffice-bo)
  conflicts=(openoffice-bo)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_bo/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-br() {
  pkgdesc="Breton language pack for LibreOffice"
  provides=('openoffice-br' 'libreoffice-langpack')
  replaces=(openoffice-br)
  conflicts=(openoffice-br)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_br/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-brx() {
  pkgdesc="Bodo language pack for LibreOffice"
  provides=('openoffice-brx' 'libreoffice-langpack')
  replaces=(openoffice-brx)
  conflicts=(openoffice-brx)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_brx/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-bs() {
  pkgdesc="Bosnian language pack for LibreOffice"
  provides=('openoffice-bs' 'libreoffice-langpack')
  replaces=(openoffice-bs)
  conflicts=(openoffice-bs)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_bs/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ca-XV() {
  pkgdesc="Catalan (Valencia) language pack for LibreOffice"
  provides=('openoffice-ca-XV' 'libreoffice-langpack')
  replaces=(openoffice-ca-XV)
  conflicts=(openoffice-ca-XV)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ca-XV/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ca() {
  pkgdesc="Catalan language pack for LibreOffice"
  provides=('openoffice-ca' 'libreoffice-langpack')
  replaces=(openoffice-ca)
  conflicts=(openoffice-ca)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ca/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-cs() {
  pkgdesc="Czech language pack for LibreOffice"
  provides=('openoffice-cs' 'libreoffice-langpack')
  replaces=(openoffice-cs)
  conflicts=(openoffice-cs)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_cs/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-cy() {
  pkgdesc="Welsh language pack for LibreOffice"
  provides=('openoffice-cy' 'libreoffice-langpack')
  replaces=(openoffice-cy)
  conflicts=(openoffice-cy)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_cy/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-da() {
  pkgdesc="Danish language pack for LibreOffice"
  provides=('openoffice-da' 'libreoffice-langpack')
  replaces=(openoffice-da)
  conflicts=(openoffice-da)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_da/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-de() {
  pkgdesc="German language pack for LibreOffice"
  provides=('openoffice-de' 'libreoffice-langpack')
  replaces=(openoffice-de)
  conflicts=(openoffice-de)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_de/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-dgo() {
  pkgdesc="Dogri language pack for LibreOffice"
  provides=('openoffice-dgo' 'libreoffice-langpack')
  replaces=(openoffice-dgo)
  conflicts=(openoffice-dgo)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_dgo/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-dz() {
  pkgdesc="Dzongkha language pack for LibreOffice"
  provides=('openoffice-dz' 'libreoffice-langpack')
  replaces=(openoffice-dz)
  conflicts=(openoffice-dz)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_dz/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-el() {
  pkgdesc="Greek language pack for LibreOffice"
  provides=('openoffice-el' 'libreoffice-langpack')
  replaces=(openoffice-el)
  conflicts=(openoffice-el)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_el/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-en-GB() {
  pkgdesc="English (GB) language pack for LibreOffice"
  provides=('openoffice-en-GB' 'libreoffice-langpack')
  replaces=(openoffice-en-GB)
  conflicts=(openoffice-en-GB)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_en-GB/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-en-ZA() {
  pkgdesc="English (ZA) language pack for LibreOffice"
  provides=('openoffice-en-ZA' 'libreoffice-langpack')
  replaces=(openoffice-en-ZA)
  conflicts=(openoffice-en-ZA)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_en-ZA/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-eo() {
  pkgdesc="Esperanto language pack for LibreOffice"
  provides=('openoffice-eo' 'libreoffice-langpack')
  replaces=(openoffice-eo)
  conflicts=(openoffice-eo)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_eo/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-es() {
  pkgdesc="Spanish language pack for LibreOffice"
  provides=('openoffice-es' 'libreoffice-langpack')
  replaces=(openoffice-es)
  conflicts=(openoffice-es)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_es/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-et() {
  pkgdesc="Estonian language pack for LibreOffice"
  provides=('openoffice-et' 'libreoffice-langpack')
  replaces=(openoffice-et)
  conflicts=(openoffice-et)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_et/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-eu() {
  pkgdesc="Basque language pack for LibreOffice"
  provides=('openoffice-eu' 'libreoffice-langpack')
  replaces=(openoffice-eu)
  conflicts=(openoffice-eu)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_eu/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-fa() {
  pkgdesc="Persian language pack for LibreOffice"
  provides=('openoffice-fa' 'libreoffice-langpack')
  replaces=(openoffice-fa)
  conflicts=(openoffice-fa)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_fa/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-fi() {
  pkgdesc="Finnish language pack for LibreOffice"
  provides=('openoffice-fi' 'libreoffice-langpack')
  replaces=(openoffice-fi)
  conflicts=(openoffice-fi)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_fi/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-fr() {
  pkgdesc="French language pack for LibreOffice"
  provides=('openoffice-fr' 'libreoffice-langpack')
  replaces=(openoffice-fr)
  conflicts=(openoffice-fr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_fr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ga() {
  pkgdesc="Irish language pack for LibreOffice"
  provides=('openoffice-ga' 'libreoffice-langpack')
  replaces=(openoffice-ga)
  conflicts=(openoffice-ga)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ga/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-gd() {
  pkgdesc="Gaelic (Scottish) language pack for LibreOffice"
  provides=('openoffice-gd' 'libreoffice-langpack')
  replaces=(openoffice-gd)
  conflicts=(openoffice-gd)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_gd/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-gl() {
  pkgdesc="Galician language pack for LibreOffice"
  provides=('openoffice-gl' 'libreoffice-langpack')
  replaces=(openoffice-gl)
  conflicts=(openoffice-gl)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_gl/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-gu() {
  pkgdesc="Gujarati language pack for LibreOffice"
  provides=('openoffice-gu' 'libreoffice-langpack')
  replaces=(openoffice-gu)
  conflicts=(openoffice-gu)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_gu/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-he() {
  pkgdesc="Hebrew language pack for LibreOffice"
  provides=('openoffice-he' 'libreoffice-langpack')
  replaces=(openoffice-he)
  conflicts=(openoffice-he)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_he/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-hi() {
  pkgdesc="Hindi language pack for LibreOffice"
  provides=('openoffice-hi' 'libreoffice-langpack')
  replaces=(openoffice-hi)
  conflicts=(openoffice-hi)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_hi/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-hr() {
  pkgdesc="Croatian language pack for LibreOffice"
  provides=('openoffice-hr' 'libreoffice-langpack')
  replaces=(openoffice-hr)
  conflicts=(openoffice-hr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_hr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-hu() {
  pkgdesc="Hungarian language pack for LibreOffice"
  provides=('openoffice-hu' 'libreoffice-langpack')
  replaces=(openoffice-hu)
  conflicts=(openoffice-hu)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_hu/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-id() {
  pkgdesc="Bahasa Indonesia language pack for LibreOffice"
  provides=('openoffice-id' 'libreoffice-langpack')
  replaces=(openoffice-id)
  conflicts=(openoffice-id)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_id/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-is() {
  pkgdesc="Icelandic language pack for LibreOffice"
  provides=('openoffice-is' 'libreoffice-langpack')
  replaces=(openoffice-is)
  conflicts=(openoffice-is)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_is/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-it() {
  pkgdesc="Italian language pack for LibreOffice"
  provides=('openoffice-it' 'libreoffice-langpack')
  replaces=(openoffice-it)
  conflicts=(openoffice-it)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_it/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ja() {
  pkgdesc="Japanese language pack for LibreOffice"
  provides=('openoffice-ja' 'libreoffice-langpack')
  replaces=(openoffice-ja)
  conflicts=(openoffice-ja)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ja/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ka() {
  pkgdesc="Georgian language pack for LibreOffice"
  provides=('openoffice-ka' 'libreoffice-langpack')
  replaces=(openoffice-ka)
  conflicts=(openoffice-ka)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ka/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-kk() {
  pkgdesc="Kazakh language pack for LibreOffice"
  provides=('openoffice-kk' 'libreoffice-langpack')
  replaces=(openoffice-kk)
  conflicts=(openoffice-kk)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_kk/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-km() {
  pkgdesc="Khmer (Cambodia) language pack for LibreOffice"
  provides=('openoffice-km' 'libreoffice-langpack')
  replaces=(openoffice-km)
  conflicts=(openoffice-km)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_km/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-kn() {
  pkgdesc="Kannada language pack for LibreOffice"
  provides=('openoffice-kn' 'libreoffice-langpack')
  replaces=(openoffice-kn)
  conflicts=(openoffice-kn)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_kn/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ko() {
  pkgdesc="Korean language pack for LibreOffice"
  provides=('openoffice-ko' 'libreoffice-langpack')
  replaces=(openoffice-ko)
  conflicts=(openoffice-ko)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ko/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-kok() {
  pkgdesc="Konkani language pack for LibreOffice"
  provides=('openoffice-kok' 'libreoffice-langpack')
  replaces=(openoffice-kok)
  conflicts=(openoffice-kok)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_kok/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ks() {
  pkgdesc="Kashmiri language pack for LibreOffice"
  provides=('openoffice-ks' 'libreoffice-langpack')
  replaces=(openoffice-ks)
  conflicts=(openoffice-ks)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ks/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ku() {
  pkgdesc="Kurdish language pack for LibreOffice"
  provides=('openoffice-ku' 'libreoffice-langpack')
  replaces=(openoffice-ku)
  conflicts=(openoffice-ku)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ku/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-lb() {
  pkgdesc="Luxembourgish language pack for LibreOffice"
  provides=('openoffice-lb' 'libreoffice-langpack')
  replaces=(openoffice-lb)
  conflicts=(openoffice-lb)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_lb/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-lo() {
  pkgdesc="Lao language pack for LibreOffice"
  provides=('openoffice-lo' 'libreoffice-langpack')
  replaces=(openoffice-lo)
  conflicts=(openoffice-lo)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_lo/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-lt() {
  pkgdesc="Lithuanian language pack for LibreOffice"
  provides=('openoffice-lt' 'libreoffice-langpack')
  replaces=(openoffice-lt)
  conflicts=(openoffice-lt)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_lt/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-lv() {
  pkgdesc="Latvian language pack for LibreOffice"
  provides=('openoffice-lv' 'libreoffice-langpack')
  replaces=(openoffice-lv)
  conflicts=(openoffice-lv)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_lv/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-mai() {
  pkgdesc="Maithili language pack for LibreOffice"
  provides=('openoffice-mai' 'libreoffice-langpack')
  replaces=(openoffice-mai)
  conflicts=(openoffice-mai)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_mai/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-mk() {
  pkgdesc="Macedonian language pack for LibreOffice"
  provides=('openoffice-mk' 'libreoffice-langpack')
  replaces=(openoffice-mk)
  conflicts=(openoffice-mk)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_mk/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ml() {
  pkgdesc="Malayalam language pack for LibreOffice"
  provides=('openoffice-ml' 'libreoffice-langpack')
  replaces=(openoffice-ml)
  conflicts=(openoffice-ml)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ml/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-mn() {
  pkgdesc="Mongolian language pack for LibreOffice"
  provides=('openoffice-mn' 'libreoffice-langpack')
  replaces=(openoffice-mn)
  conflicts=(openoffice-mn)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_mn/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-mni() {
  pkgdesc="Manipuri language pack for LibreOffice"
  provides=('openoffice-mni' 'libreoffice-langpack')
  replaces=(openoffice-mni)
  conflicts=(openoffice-mni)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_mni/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-mr() {
  pkgdesc="Marathi language pack for LibreOffice"
  provides=('openoffice-mr' 'libreoffice-langpack')
  replaces=(openoffice-mr)
  conflicts=(openoffice-mr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_mr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-my() {
  pkgdesc="Burmese language pack for LibreOffice"
  provides=('openoffice-my' 'libreoffice-langpack')
  replaces=(openoffice-my)
  conflicts=(openoffice-my)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_my/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-nb() {
  pkgdesc="Norwegian Bokmal language pack for LibreOffice"
  provides=('openoffice-nb' 'libreoffice-langpack')
  replaces=(openoffice-nb)
  conflicts=(openoffice-nb)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_nb/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ne() {
  pkgdesc="Nepali language pack for LibreOffice"
  provides=('openoffice-ne' 'libreoffice-langpack')
  replaces=('openoffice-ne')
  conflicts=(openoffice-ne)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ne/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-nl() {
  pkgdesc="Dutch language pack for LibreOffice"
  provides=('openoffice-nl' 'libreoffice-langpack')
  replaces=(openoffice-nl)
  conflicts=(openoffice-nl)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_nl/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-nn() {
  pkgdesc="Norwegian Nynorsk language pack for LibreOffice"
  provides=('openoffice-nn' 'libreoffice-langpack')
  replaces=(openoffice-nn)
  conflicts=(openoffice-nn)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_nn/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-nr() {
  pkgdesc="Ndebele (South) language pack for LibreOffice"
  provides=(openoffice-nr)
  replaces=(openoffice-nr)
  conflicts=(openoffice-nr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_nr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-nso() {
  pkgdesc="Northern Sotho language pack for LibreOffice"
  provides=('openoffice-ns' 'libreoffice-ns' 'libreoffice-langpack')
  replaces=('openoffice-ns' 'libreoffice-ns')
  conflicts=(openoffice-ns)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_nso/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-oc() {
  pkgdesc="Occitan language pack for LibreOffice"
  provides=('openoffice-oc' 'libreoffice-langpack')
  replaces=(openoffice-oc)
  conflicts=(openoffice-oc)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_oc/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-om() {
  pkgdesc="Oromo language pack for LibreOffice"
  provides=('openoffice-om' 'libreoffice-langpack')
  replaces=(openoffice-om)
  conflicts=(openoffice-om)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_om/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-or() {
  pkgdesc="Oriya language pack for LibreOffice"
  provides=('openoffice-or' 'libreoffice-langpack')
  replaces=(openoffice-or)
  conflicts=(openoffice-or)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_or/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-pa-IN() {
  pkgdesc="Punjabi (India) language pack for LibreOffice"
  provides=('openoffice-pa-IN' 'libreoffice-langpack')
  replaces=(openoffice-pa-IN)
  conflicts=(openoffice-pa-IN)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_pa-IN/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-pl() {
  pkgdesc="Polish language pack for LibreOffice"
  provides=('openoffice-pl' 'libreoffice-langpack')
  replaces=(openoffice-pl)
  conflicts=(openoffice-pl)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_pl/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-pt-BR() {
  pkgdesc="Portuguese (Brasil) language pack for LibreOffice"
  provides=('openoffice-pt-BR' 'libreoffice-langpack')
  replaces=(openoffice-pt-BR)
  conflicts=(openoffice-pt-BR)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_pt-BR/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-pt() {
  pkgdesc="Portuguese language pack for LibreOffice"
  provides=('openoffice-pt' 'libreoffice-langpack')
  replaces=(openoffice-pt)
  conflicts=(openoffice-pt)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_pt/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ro() {
  pkgdesc="Romanian language pack for LibreOffice"
  provides=('openoffice-ro' 'libreoffice-langpack')
  replaces=(openoffice-ro)
  conflicts=(openoffice-ro)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ro/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ru() {
  pkgdesc="Russian language pack for LibreOffice"
  provides=('openoffice-ru' 'libreoffice-langpack')
  replaces=(openoffice-ru)
  conflicts=(openoffice-ru)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ru/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-rw() {
  pkgdesc="Kinyarwanda language pack for LibreOffice"
  provides=('openoffice-rw' 'libreoffice-langpack')
  replaces=(openoffice-rw)
  conflicts=(openoffice-rw)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_rw/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sa-IN() {
  pkgdesc="Sanskrit (India) language pack for LibreOffice"
  provides=('openoffice-sa-IN' 'libreoffice-langpack')
  replaces=(openoffice-sa-IN)
  conflicts=(openoffice-sa-IN)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sa-IN/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sat() {
  pkgdesc="Santali language pack for LibreOffice"
  provides=('openoffice-sat' 'libreoffice-langpack')
  replaces=(openoffice-sat)
  conflicts=(openoffice-sat)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sat/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sd() {
  pkgdesc="Sindhi language pack for LibreOffice"
  provides=('openoffice-sd' 'libreoffice-langpack')
  replaces=(openoffice-sd)
  conflicts=(openoffice-sd)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sd/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sh() {
  pkgdesc="Serbo-Croatian language pack for LibreOffice"
  provides=('openoffice-sh' 'libreoffice-langpack')
  replaces=(openoffice-sh)
  conflicts=(openoffice-sh)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sh/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-si() {
  pkgdesc="Singhalese language pack for LibreOffice"
  provides=('openoffice-si' 'libreoffice-langpack')
  replaces=(openoffice-si)
  conflicts=(openoffice-si)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_si/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sid() {
  pkgdesc="??? language pack for LibreOffice"
  provides=('openoffice-sid' 'libreoffice-langpack')
  replaces=(openoffice-sid)
  conflicts=(openoffice-sid)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sid/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sk() {
  pkgdesc="Slovak language pack for LibreOffice"
  provides=('openoffice-sk' 'libreoffice-langpack')
  replaces=(openoffice-sk)
  conflicts=(openoffice-sk)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sk/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sl() {
  pkgdesc="Slovenian language pack for LibreOffice"
  provides=('openoffice-sl' 'libreoffice-langpack')
  replaces=(openoffice-sl)
  conflicts=(openoffice-sl)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sl/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sq() {
  pkgdesc="Albanien language pack for LibreOffice"
  provides=('openoffice-sq' 'libreoffice-langpack')
  replaces=(openoffice-sq)
  conflicts=(openoffice-sq)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sq/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sr() {
  pkgdesc="Serbian language pack for LibreOffice"
  provides=('openoffice-sr' 'libreoffice-langpack')
  replaces=(openoffice-sr)
  conflicts=(openoffice-sr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ss() {
  pkgdesc="Swati language pack for LibreOffice"
  provides=('openoffice-ss' 'libreoffice-langpack')
  replaces=(openoffice-ss)
  conflicts=(openoffice-ss)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ss/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-st() {
  pkgdesc="Southern Sotho language pack for LibreOffice"
  provides=('openoffice-st' 'libreoffice-langpack')
  replaces=(openoffice-st)
  conflicts=(openoffice-st)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_st/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sv() {
  pkgdesc="Swedish language pack for LibreOffice"
  provides=('openoffice-sv' 'libreoffice-langpack')
  replaces=(openoffice-sv)
  conflicts=(openoffice-sv)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sv/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-sw-TZ() {
  pkgdesc="Swahili (Tanzania) language pack for LibreOffice"
  provides=('openoffice-sw-TZ' 'libreoffice-langpack')
  replaces=(openoffice-sw-TZ)
  conflicts=(openoffice-sw-TZ)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_sw-TZ/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ta() {
  pkgdesc="Tamil language pack for LibreOffice"
  provides=('openoffice-ta' 'libreoffice-langpack')
  replaces=(openoffice-ta)
  conflicts=(openoffice-ta)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ta/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-te() {
  pkgdesc="Telugu language pack for LibreOffice"
  provides=('openoffice-te' 'libreoffice-langpack')
  replaces=(openoffice-te)
  conflicts=(openoffice-te)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_te/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-tg() {
  pkgdesc="Tajik language pack for LibreOffice"
  provides=('openoffice-tg' 'libreoffice-langpack')
  replaces=(openoffice-tg)
  conflicts=(openoffice-tg)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_tg/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-th() {
  pkgdesc="Thai language pack for LibreOffice"
  provides=('openoffice-th' 'libreoffice-langpack')
  replaces=(openoffice-th)
  conflicts=(openoffice-th)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_th/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-tn() {
  pkgdesc="Tswana language pack for LibreOffice"
  provides=('openoffice-tn' 'libreoffice-langpack')
  replaces=(openoffice-tn)
  conflicts=(openoffice-tn)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_tn/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-tr() {
  pkgdesc="Turkish language pack for LibreOffice"
  provides=('openoffice-tr' 'libreoffice-langpack')
  replaces=(openoffice-tr)
  conflicts=(openoffice-tr)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_tr/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ts() {
  pkgdesc="Tsonga language pack for LibreOffice"
  provides=('openoffice-ts' 'libreoffice-langpack')
  replaces=(openoffice-ts)
  conflicts=(openoffice-ts)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ts/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-tt() {
  pkgdesc="TT ? language pack for LibreOffice"
  provides=('openoffice-tt' 'libreoffice-langpack')
  replaces=(openoffice-tt)
  conflicts=(openoffice-tt)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_tt/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ug() {
  pkgdesc="Uighur language pack for LibreOffice"
  provides=('openoffice-ug' 'libreoffice-langpack')
  replaces=(openoffice-ug)
  conflicts=(openoffice-ug)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ug/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-uk() {
  pkgdesc="Ukrainian language pack for LibreOffice"
  provides=('openoffice-uk' 'libreoffice-langpack')
  replaces=(openoffice-uk)
  conflicts=(openoffice-uk)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_uk/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-uz() {
  pkgdesc="Uzbek language pack for LibreOffice"
  provides=('openoffice-uz' 'libreoffice-langpack')
  replaces=(openoffice-uz)
  conflicts=(openoffice-uz)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_uz/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-ve() {
  pkgdesc="Venda language pack for LibreOffice"
  provides=('openoffice-ve' 'libreoffice-langpack')
  replaces=(openoffice-ve)
  conflicts=(openoffice-ve)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_ve/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-vi() {
  pkgdesc="Vietnamese language pack for LibreOffice"
  provides=('openoffice-vi' 'libreoffice-langpack')
  replaces=(openoffice-vi)
  conflicts=(openoffice-vi)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_vi/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-xh() {
  pkgdesc="Xhosa language pack for LibreOffice"
  provides=('openoffice-xh' 'libreoffice-langpack')
  replaces=(openoffice-xh)
  conflicts=(openoffice-xh)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_xh/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-zh-CN() {
  pkgdesc="Chinese (simplified) language pack for LibreOffice"
  provides=('openoffice-zh-CN' 'libreoffice-langpack')
  replaces=(openoffice-zh-CN)
  conflicts=(openoffice-zh-CN)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_zh-CN/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-zh-TW() {
  pkgdesc="Chinese (traditional) language pack for LibreOffice"
  provides=('openoffice-zh-TW' 'libreoffice-langpack')
  replaces=(openoffice-zh-TW)
  conflicts=(openoffice-zh-TW)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_zh-TW/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}

package_libreoffice-zu() {
  pkgdesc="Zulu language pack for LibreOffice"
  provides=('openoffice-zu' 'libreoffice-langpack')
  replaces=(openoffice-zu)
  conflicts=(openoffice-zu)
  cd "${srcdir}"/LibreOffice_${_dirver}_Linux_x86_rpm_langpack_zu/RPMS
  mkdir -p "${pkgdir}"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "${pkgdir}"/usr/lib/libreoffice
  chown root:root -R "${pkgdir}"/usr/lib/libreoffice
}
